package com.yungu.swift.common.model.dto;

import com.yungu.swift.base.model.BaseDto;
import com.yungu.swift.base.model.annotation.Desensitization;

/**
 * Copyright © 厦门云谷互联信息有限公司 2018-2020 All Right Reserved
 * <p>
 * 反馈 DTO
 *
 * @author Zerrion
 * @version 1.0.0-RELEASE
 * @since 2018-07-05 11:28
 */
public class CommonFeedbackDto extends BaseDto {

    /**
     * 1: 未回复 2: 已回复
     **/
    public final static Integer STATUS_UNREPLY = 1;
    public final static Integer STATUS_REPLYED = 2;


    /**
     * 标题
     **/
    private String title;
    /**
     * 内容
     **/
    private String content;
    /**
     * 用户uuid
     **/
    private String userUuid;
    /**
     * 身份识别（1是乘客端，2是司机端）
     **/
    private Integer identity;
    /**
     * 状态（1.未回复 2.已回复 ）
     **/
    private Integer status;

    /**
     * 回复内容
     **/
    private String replyContent;
    /**
     * 是否显示
     **/
    private Integer isShow;

    //附加字段
    /**
     * 姓名
     **/
    private String name;
    /**
     * 手机号
     **/
    @Desensitization(type = Desensitization.DesensitionType.MOBILE)
    private String mobile;
    /**
     * 来源客户端（1：司机出租车端；2：司机专车端；3：司机拼车端；4：司机快车端；109：乘客端）
     **/
    private Integer source;
    /**
     * 处理人账号
     */
    private String updaterAccount;


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public String getUpdaterAccount() {
        return updaterAccount;
    }

    public void setUpdaterAccount(String updaterAccount) {
        this.updaterAccount = updaterAccount;
    }

    public String getSourceTypeStr() {
        /**
         * 来源客户端（1：司机出租车端；2：司机专车端；3：司机拼车端；4：司机快车端；109：乘客端）
         */
        if(getSource() == null) {
            return "";
        }
        switch (getSource()) {
            case 1:
                return "司机出租车端";
            case 2:
                return "司机专车端";
            case 3:
                return "司机拼车端";
            case 4:
                return "司机快车端";
            case 109:
                return "乘客端";
            default:
                return "";
        }
    }

    public String getStatusStr() {
        if(getStatus() == null) {
            return "";
        }
        switch (getStatus()) {
            case 1:
                return "未回复";
            case 2:
                return "已回复";
            default:
                return "";
        }
    }
}
